# Copyright (c) 2020 Presto Labs Pte. Ltd.
# Author: chunhui

load("@nazel//:nazel_build.bzl", "nazel_cc_binary", "nazel_cc_library")

package(default_visibility = ["//visibility:public"])

# ---------------------------------- basic ---------------------------------

nazel_cc_binary(
    name = "interval_feed_generator",
    srcs = [
        "interval_feed_generator.cc",
    ],
    deps = [
        ":interval_feed_tool",
    ],
)

nazel_cc_library(
    name = "interval_feed_tool",
    srcs = [
        "interval_feed_consumer.cc",
        "util.cc",
    ],
    hdrs = [
        "feed_summary_calculator.h",
        "h5_dumper.h",
        "interval_feed_consumer.h",
        "ohlc.h",
        "spread.h",
        "std.h",
        "util.h",
        "vwap.h",
    ],
    deps = ["//cc/coin2"],
)

nazel_cc_binary(
    name = "kline_feed_generator",
    srcs = [
        "kline_feed_generator.cc",
    ],
    deps = [
        ":interval_feed_tool",
        "//cc/appcoin2/support/feed:fastfeed_util",
        "//cc/coin2",
    ],
)
